/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background: linear-gradient(135deg, #0d47a1 0%, #1a237e 100%);
    overflow: hidden;
    height: 100vh;
}

/* 地图容器 */
.map-container {
    width: 100%;
    height: 100vh;
    position: relative;
    background: #0d47a1;
}

/* OpenLayers 地图样式重写 */
.ol-viewport {
    background: #0d47a1 !important;
}

/* 隐藏默认的OpenLayers控件 */
.ol-zoom {
    display: none !important;
}

.ol-attribution {
    background: rgba(26, 35, 126, 0.8) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    bottom: 10px !important;
    right: 10px !important;
    max-width: 200px !important;
    border-radius: 4px !important;
}

.ol-attribution a {
    color: #64b5f6 !important;
}

/* 地图标题 */
.map-title {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(26, 35, 126, 0.9);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-title h1 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.map-title p {
    font-size: 12px;
    color: #bbdefb;
    font-weight: 300;
}

/* 自定义缩放控制 */
.zoom-controls {
    position: absolute;
    top: 100px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    background: rgba(26, 35, 126, 0.9);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.zoom-btn:hover {
    background: rgba(13, 71, 161, 1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.zoom-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .map-title {
        top: 10px;
        left: 10px;
        padding: 10px 15px;
        max-width: calc(100vw - 100px);
    }
    
    .map-title h1 {
        font-size: 16px;
    }
    
    .map-title p {
        font-size: 11px;
    }
    
    .zoom-controls {
        top: 80px;
        left: 10px;
    }
    
    .zoom-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* 加载动画 */
@keyframes mapLoad {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.map-container {
    animation: mapLoad 0.8s ease-out;
}

/* 鼠标样式 */
.map-container {
    cursor: grab;
}

.map-container:active {
    cursor: grabbing;
}

/* 禁用选择和右键菜单 */
.map-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.map-container::selection {
    background: transparent;
}

/* 深蓝主题滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 35, 126, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 181, 246, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 181, 246, 0.8);
} 